/**
 * 认领明细的Input组件
 * */

import {useContext} from "react";
import {DetailContext} from "@/biz-components/claim-items/components/DetailContext";

import {Input } from '@formily/antd';
import {InputProps} from "antd/lib/input";

export function ClaimInput(props: InputProps) {
	const detailMode = useContext(DetailContext);
	if(detailMode) {
		return <span>{props.value}</span>
	} else {
		return <Input {...props}/>
	}
}
